namespace DingHeng.TransportationManagement.Entity
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    [Table("Driver")]
    public partial class Driver
    {
        public Driver()
        {
            Vehicles = new HashSet<Vehicle>();
        }

        public Guid ID { get; set; }

        [StringLength(5)]
        public string Name { get; set; }

        [StringLength(1)]
        public string Gender { get; set; }

        public DateTime? Birth { get; set; }

        [StringLength(32)]
        public string PhoneNo { get; set; }

        [StringLength(20)]
        public string IDNo { get; set; }

        [StringLength(40)]
        public string DrivingLicense { get; set; }

        [StringLength(8)]
        public string CreateBy { get; set; }

        public DateTime? CreateDate { get; set; }

        [StringLength(8)]
        public string UpdateBy { get; set; }

        public DateTime? UpdateDate { get; set; }

        public bool? IsActive { get; set; }

        public virtual ICollection<Vehicle> Vehicles { get; set; }
    }
}
